import request from '@/utils/request'

// 用户注册
export const userRegisterService = ({username, password, repassword}) => {
    return request({
        url: '/api/reg',
        method: 'post',
        data: {
            username,
            password,
            repassword
        }
    })
}
//登录接口
export const userLoginService = ({username, password}) => 
    request.post('/api/login',{username,password})
//获取用户的基本信息
export const userGetInfoService = () => request.get('/my/userinfo')